<?php
	class Board_model extends CI_Model
	{
		function __construct()
		{
			// Call the Model constructor
			parent::__construct();
		}
		
		public function get_board( $boardID )
		{
			$query = $this->db->get_where('Board', array('BoardID' => $boardID));
			$toReturn = $query->result_array();
			return $toReturn[0];
		}
		
		public function get_all( )
		{
			$query = $this->db->get('Board');
			return $query->result_array();
		}
	}
?>